﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master"
    CodeBehind="CricInfo.aspx.vb" Inherits="CricketForum.CricRules" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
   <p>
        <h1>
           Share Information about Rules,Different format and history of Crickets
        </h1>
   </p>
    <div class="RssFeed">
        RSS Feed
        <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Pictures/General/Feed-icon.jpeg"
            ToolTip="RSS Feed" Width="20px" Height="20px" />
    </div>

    <p>
   
        <asp:GridView ID="gvCricGrounds" runat="server" AllowSorting="True" AutoGenerateColumns="False"
            DataSourceID="CricketPlayersDataSource" Width="100%" AllowPaging="True" 
            PageSize="5">
            <EmptyDataTemplate>
                No Data Found.
            </EmptyDataTemplate>
            <HeaderStyle CssClass="H1" />
            <Columns>
                <asp:BoundField DataField="ID" HeaderText="SL NO" SortExpression="ID" Visible="true" />
                <asp:HyperLinkField DataTextField="Title" HeaderText="Title" SortExpression="Title"
                    DataNavigateUrlFields="ID" DataNavigateUrlFormatString="CricInfoDetails.aspx?ID={0}" />
                <asp:BoundField DataField="Info" HeaderText="Details" SortExpression="Info" />
             
                <asp:BoundField DataField="CreatedBy" HeaderText="Posted By" SortExpression="CreatedBy" />
                  <asp:BoundField DataField="CreatedDate" HeaderText="Posted Date" HtmlEncode="false"  DataFormatString="{0:g}" />
            </Columns>
        </asp:GridView>
   
    </p>
    <div>
        <table width="100%">
            <tr>
                <td>
                    <asp:Button ID="btnAddCricInfo" runat="server" Text="Add Cricket Information" />
                </td>
            </tr>
        </table>
    </div>
    <asp:SqlDataSource ID="CricketPlayersDataSource" runat="server" ConnectionString="<%$ ConnectionStrings:ConnStringWorldsCricket %>"
        ProviderName="<%$ ConnectionStrings:ConnStringWorldsCricket.ProviderName %>"
        SelectCommand="SELECT * FROM CricInfo "></asp:SqlDataSource>
</asp:Content>
